]> dgit.raspbian.org Git - gnome-shell.git/commit
notificationDaemon: use different reason when replacing notification
authorCosimo Cecchi <cosimo@endlessm.com>
Thu, 11 Oct 2018 01:26:31 +0000 (18:26 -0700)
committerFlorian Müllner <florian.muellner@gmail.com>
Sat, 10 Nov 2018 10:56:49 +0000 (10:56 +0000)
commita98ed08a549bcc2fdc0b9c1b50edd3d83dd3c06d
treee2d7ef1c5e710f775c7470bae9c343e71d1acf5b
parent80a75471291c39000e858970f9327b02a0060658
notificationDaemon: use different reason when replacing notification

Differently from the fd.o notifications, Gtk notifications do not
have a mechanism to update themselves. Instead, when a new
notification is received for an ID already known to the notification
daemon, the old notification is dismissed and a replaced with a new
one.

Currently though, there is no way to distinguish a notification that
was dismissed because of an user interaction, or because it was
replaced. That is an useful piece of information, so add a new value
to the NotificationDestroyedReason enum to account for it.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/258
js/ui/messageTray.js
js/ui/notificationDaemon.js